import Vue from 'vue';
import App from './App.vue';
import router from './router';

Vue.config.productionTip = false;

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import store from './store/';

Vue.use(ElementUI);

import NutUI from '@nutui/nutui-jdl';
import '@nutui/nutui-jdl/dist/nutui.css';

NutUI.install(Vue);

new Vue({
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this; //安装全局事件总线
  },
  render: (h) => h(App),
}).$mount('#app');
